package com.atos.optical.Enums;

import lombok.AllArgsConstructor;

/**
 * @author wanghra
 * @version 1.0
 * @description 响应信息枚举
 * @date 2025/8/11
 */
@AllArgsConstructor
public enum ResponseCodeEnum implements ErrorEnum {
    FAIL(-1, "操作失败！"),
    SUCCESS(0, "操作成功！"),
    TOKEN_FAIL(1, "鉴权失败！"),
    VALIDATE_FAIL(-1, "登录名或密码错误！"),
    ;

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public Integer getErrorCode() {
        return this.code;
    }
}
